<?php
session_start();
//if( isset($_SESSION['last_key']) ) header("Location: test.php");
include_once( 'config.php' );
include_once( 'weibooauth.php' );



$o = new WeiboOAuth( WB_AKEY , WB_SKEY  );

$keys = $o->getRequestToken();



	$callback ='http://icherry.sinaapp.com/callback.php';

$aurl = $o->getAuthorizeURL( $keys['oauth_token'] ,false , $callback );

$_SESSION['keys'] = $keys;


?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>QR传情</title>
<link href="./css/style_similar_index.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/javascript" src="./js/jquery.js"></script>
<script language="JavaScript" type="text/javascript" src="./js/corner.js"></script>
<script language="JavaScript" type="text/javascript">
$(document).ready(function() {
	$('#info').corner();
	$('#about').corner();
	$('#result').corner();
});
</script>
</head>
<body>
<div id="header">
</div>
<div id="contain">
	<div id="about" style="border-top-left-radius: 10px 10px; border-top-right-radius: 10px 10px; border-bottom-left-radius: 10px 10px; border-bottom-right-radius: 10px 10px; ">
		<p>QR传情。采用QR二维码编码你想说的情话，用最科技最时尚的方式对她说我爱你，快来看看吧~</p>
	</div>
	<div id="control">
		<a href="<?=$aurl?>"><img src="./img/sina_login.png"></a>
	</div>
</div>

</body></html>